public class Main {
    public static void main(String[] args) {
        // 创建3个学生对象
        Student student1 = new Student("222024321072052", "然娜", "女", 20);
        Student student2 = new Student("222024123456789", "小八", "男", 24);
        Student student3 = new Student("222023123456789", "Justin Bieber", "男", 29);

        // 创建2个课程对象
        Course course1 = new Course("C001", "Java语言与WEB程序开发", "伍老师");
        Course course2 = new Course("C002", "数据结构", "何老师");

        // 修改其中一个学生的年龄
        student2.setAge(20);
        // 修改一门课程的任课教师
        course1.setTeacher("于教授");

        // 展示所有学生信息
        System.out.println("----- 学生信息展示 -----");
        student1.showInfo();
        student2.showInfo();
        student3.showInfo();

        // 展示所有课程信息
        System.out.println("\n----- 课程信息展示 -----");
        course1.showInfo();
        course2.showInfo();
    }
}